package routes

import (
	"el/app/http/AdminController"

	"github.com/labstack/echo/v4"
)

func Admin(admin *echo.Group) {
	system := admin.Group("system/")
	{
		SystemController := &AdminController.SystemController{}
		system.Any("cpu", SystemController.Cpu)
		system.Any("ram", SystemController.Ram)
		system.Any("disk", SystemController.Disk)
	}

	login := admin.Group("login/")
	{
		UserController := &AdminController.UserController{}
		login.Any("login", UserController.Login)
		login.Any("out", UserController.Out)
		login.Any("log", UserController.Log)
	}
}
